HAL ICACHE control functions migration ¶
This section provides information about the HAL ICACHE control functions migration.
Note
We have introduced a handle in HAL2, so for the following ICACHE HAL2 functions, each function will have a handle inside the parameters.
Related concept: Other HAL ICACHE changes
HAL ICACHE enable ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_Enable(void);
|
hal_status_t HAL_ICACHE_Start(hal_icache_handle_t *hicache, uint32_t interrupts);
|
HAL ICACHE disable ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_Disable(void);
|
hal_status_t HAL_ICACHE_Stop(hal_icache_handle_t *hicache);
|
HAL ICACHE is enabled ¶
|
HAL1 |
HAL2 |
|---|---|
uint32_t HAL_ICACHE_IsEnabled(void);
|
__STATIC_INLINE uint32_t LL_ICACHE_IsEnabled(const ICACHE_TypeDef *icachex);
|
HAL ICACHE configure associativity mode ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_ConfigAssociativityMode(uint32_t AssociativityMode);
|
hal_status_t HAL_ICACHE_SetAssociativityMode(hal_icache_handle_t *hicache,
hal_icache_associativity_t mode);
|
HAL ICACHE de-initialization ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_DeInit(void);
|
void HAL_ICACHE_DeInit(hal_icache_handle_t *hicache);
|
HAL ICACHE invalidate ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_Invalidate(void);
|
hal_status_t HAL_ICACHE_Invalidate(hal_icache_handle_t *hicache);
|
HAL ICACHE invalidate IT ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_Invalidate_IT(void);
|
hal_status_t HAL_ICACHE_Invalidate_IT(hal_icache_handle_t *hicache);
|
HAL ICACHE wait for invalidate complete ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_WaitForInvalidateComplete(void);
|
Removed, as this function is already covered by
|
HAL ICACHE monitor start ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_Monitor_Start(uint32_t MonitorType);
|
hal_status_t HAL_ICACHE_EnableMonitors(hal_icache_handle_t *hicache,
uint32_t monitor_type);
|
HAL ICACHE monitor stop ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_Monitor_Stop(uint32_t MonitorType);
|
hal_status_t HAL_ICACHE_DisableMonitors(hal_icache_handle_t *hicache,
uint32_t monitor_type);
|
HAL ICACHE monitor reset ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_ICACHE_Monitor_Reset(uint32_t MonitorType);
|
hal_status_t HAL_ICACHE_ResetMonitors(hal_icache_handle_t *hicache,
uint32_t monitor_type);
|
HAL ICACHE monitor get hit value ¶
|
HAL1 |
HAL2 |
|---|---|
uint32_t HAL_ICACHE_Monitor_GetHitValue(void);
|
uint32_t HAL_ICACHE_GetMonitorHitValue(const hal_icache_handle_t *hicache);
|
HAL ICACHE monitor get miss value ¶
|
HAL1 |
HAL2 |
|---|---|
uint32_t HAL_ICACHE_Monitor_GetMissValue(void);
|
uint32_t HAL_ICACHE_GetMonitorMissValue(const hal_icache_handle_t *hicache);
|